﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>

<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").live("click",function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	});
	
	$('.title').live("click",function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
	$.post("user!findModel.action",function(data){
		var json = eval("("+data+")");
		if(json.msg){
			return;
		}
		//leftmenu
		var html ="";
		for(var i = 0;i<json.length;i++){
			if(json[i].id==json[i].pid){
				if(i!=0){
					html+="</ul></div>";
				}
				html+="<dd><div class=\"title\"><span><img src=\"images/leftico01.png\" /></span>"+json[i].name+"</div><ul class=\"menuson\">";
				continue;			
			}
			
			
			
			if(json[i].name=="后台首页"){
				html+="<li class=\"active\"><cite></cite><a href=\"index.html\" target=\"rightFrame\">后台首页</a><i></i></li>";
			}else{
				html+="<li><cite></cite><a href=\""+json[i].url+"\" target=\"rightFrame\">"+json[i].name+"</a><i></i></li>";
			}
		}
		$(".leftmenu").html(html);
	});
})	
</script>


</head>

<body style="background:#f0f9fd;">
	<div class="lefttop"><span></span>电力巡检系统</div>
    
    <dl class="leftmenu">
        <!-- 
    <dd>
    <div class="title">
    <span><img src="images/leftico01.png" /></span>工作平台
    </div>
    	<ul class="menuson">
        <li class="active"><cite></cite><a href="index.html" target="rightFrame">后台首页</a><i></i></li>
        <li ><cite></cite><a href="right.html" target="rightFrame">待办列表</a><i></i></li>
          </ul>    
    </dd>
        
    
    <dd>
    <div class="title">
    <span><img src="images/leftico02.png" /></span>系统管理
    </div>
    <ul class="menuson">
        <li><cite></cite><a href="#">用户组管理</a><i></i></li>
        <li><cite></cite><a href="#">用户管理</a><i></i></li>
        <li><cite></cite><a href="#">权限设置</a><i></i></li>
        </ul>     
    </dd> 
    
    
    <dd><div class="title"><span><img src="images/leftico03.png" /></span>塔杆管理</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">塔杆信息</a><i></i></li>
        
    </ul>    
    </dd>  
    
    
    <dd><div class="title"><span><img src="images/leftico04.png" /></span>线路管理</div>
    <ul class="menuson">
        <li><cite></cite><a href="routeLine.html" target="rightFrame">线路信息</a><i></i></li>
               
    </ul>
    
    </dd>   
    
    
    <dd><div class="title"><span><img src="images/leftico02.png" /></span>缺陷管理</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">缺陷类型设置</a><i></i></li>
        <li><cite></cite><a href="#">缺陷等级确认</a><i></i></li>
        
        
    </ul>
    
    </dd>   
     <dd><div class="title"><span><img src="images/leftico02.png" /></span>巡检任务管理</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">巡检任务制定与分配</a><i></i></li>
        <li><cite></cite><a href="#">巡检任务执行与回执</a><i></i></li>
        <li><cite></cite><a href="#">缺陷查询</a><i></i></li>
        
        
    </ul>
    
    </dd> 
    
    <dd><div class="title"><span><img src="images/leftico02.png" /></span>消缺任务管理</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">消缺任务制定与分配</a><i></i></li>
        <li><cite></cite><a href="#">消缺任务执行与回执</a><i></i></li>
        <li><cite></cite><a href="#">消缺查询</a><i></i></li>
        
        
    </ul>
    
    </dd> 
    <dd><div class="title"><span><img src="images/leftico02.png" /></span>信息统计</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">巡检记录统计</a><i></i></li>
        <li><cite></cite><a href="#">消缺记录统计</a><i></i></li>
        
        
    </ul>
    
    </dd> 
     -->
    </dl>
    
</body>
</html>
